package cn.itfenxiang.roadlawbuddha_back.config;

import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@ConfigurationProperties(prefix = "email")
@Component
@Data
@ToString
public class EmailProperties {

    //发件人邮箱

    public String user;

    //发件人邮箱授权码
    public String code = "";

    //发件人邮箱对应的服务器的域名 ， 163：smtp.163.com  ,   qq: smtp:qq.com
    private String host = "smtp.qq.com";

    //身份验证开关
    private boolean auth = true;
}
